﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLBH.DataModel;

namespace QLBH.Model.Controller
{
    public class PhieuThuChiController : QLBHEntityBase<PHIEUTHUCHI>
    {
        public static QLBHEntityBase<PHIEUTHUCHI> GetInstance()
        {
            return new PhieuThuChiController();
        }
        /// <summary>
        /// Add new Phieu thu chi object
        /// </summary>
        /// <param name="entity"> Phieu thu chi object</param>
        /// <returns>return new Phieu thu chi object</returns>
        public override PHIEUTHUCHI Add(PHIEUTHUCHI entity)
        {
            try
            {
                return base.Add(entity);
            }
            catch (System.Exception ex)
            {
            	throw ex;
            }
            
        }
        /// <summary>
        /// Edit phieu thu chi object
        /// </summary>
        /// <param name="entity">The modified Phieu thu chi object</param>
        /// <returns>Return modified PhieuThuChi object</returns>
        public override PHIEUTHUCHI Edit(PHIEUTHUCHI entity)
        {
            try
            {
                return base.Edit(entity);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
            
        }
    }
}
